import request from '@/utils/request'

export const getAllSite = () => {
  return request({
    url: '/syssite/data',
    method: 'get',
  })
}
export const getSitePage = data => {
  return request({
    url: '/syssite/page',
    method: 'post',
    data: data,
  })
}
export const removeById = id => {
  return request({
    url: '/syssite/remove/' + id,
    method: 'get',
  })
}
export const saveSite = data => {
  return request({
    url: '/syssite/save',
    method: 'post',
    data: data,
  })
}
export const updateSite = data => {
  return request({
    url: '/syssite/update',
    method: 'post',
    data: data,
  })
}

export const    getSiteDataByName=(name)=>{
  return request({
    url: '/syssite/byName',
    method: 'get',
    params:{name:name}
  })
}
export const getAll=(data)=>{
  return request({
    url: '/syssiterecord/getData',
    method: 'post',
    data:data
  })
}
export const getSiteSeataData=()=>{
  return request({
    url:"/province/list",
    method:"get"
  })
}
